<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>订购系统-新用户注册</title>
<style type="text/css">
<!--
body {
	margin:40px 220px 40px 220px;
}
-->
</style>
  </head>
  
<body>
<form action="register" method="post" name="form1" onsubmit="return userCheck()">
  <!--img src="" /--> 
  
  <script type="text/javascript">
	function userCheck(){
		if (document.form1.username.value == ""){
			window.alert("请输入用户名");
			return false;
		}
		if (document.form1.password.value == ""){
			window.alert("请输入用户密码");
			return false;
		}
		if (document.form1.repassword.value == ""){
			window.alert("请输入密码确认");
			return false;
		}
		if (document.form1.repassword.value != document.form1.password.value){
			window.alert("输入的两次密码并不相同");
			return false;
		}
		if (document.form1.realyname.value == ""){
			window.alert("请输入真实姓名");
			return false;
		}
		if (document.form1.com_name.value == ""){
			window.alert("请输入公司");
			return false;
		}
		if (document.form1.answer.value == ""){
			window.alert("请输入答案");
			return false;
		}
		if (document.form1.phonenum.value == ""){
			window.alert("请输入联系电话");
			return false;
		}
		return true;
	}
</script>
  <div style="font-family:'Arial Black', Gadget, sans-serif; font-size:18px;"><img src="logo.JPG"  /><img src="logo2.JPG" />
    <div align="right" style="font:Arial, Helvetica, sans-serif; font-size:14px; color:#CCC" > 
      <script language="javascript">
  		document.write("欢迎新用户注册")
 </script> 
      <a href="">帮助</a></div>
  </div>
  <div><img src="logo3.JPG" width="916" height="30" />
    <div style=" font-family:Arial, Helvetica, sans-serif; font-size:16px; color:#1488CD"><b>创建您的帐号</b>
      <div> <img src="underline.JPG" width="919" height="19" /></div>
    </div>
  </div>
  <div align="left"  style="padding-top:40px; padding-left:260px">用户名：
    <input name="username" type="text" maxlength="18" />
    <input name="select" type="button" value="检测用户存在" />
  </div>
  <div align="left"  style="padding-top:30px; padding-left:260px">密&nbsp;&nbsp;&nbsp;&nbsp;码：
    <input name="password" type="password"maxlength="16" />
  </div>
  <div align="left"  style="padding-top:30px; padding-left:212px">再次确认密码：
    <input name="repassword" type="password"maxlength="16" />
  </div>
  <div style="margin-top:20px"><img src="logo3.JPG" width="916" height="30" />
    <div style=" font-family:Arial, Helvetica, sans-serif; font-size:16px; color:#1488CD"><b>安全信息设置</b>
      <div> <img src="underline.JPG" width="919" height="19" /></div>
    </div>
  </div>
  <div align="left"  style="padding-top:40px; padding-left:243px">真实姓名：
    <input name="realyname" type="text" maxlength="18" />
  </div>
  <div align="left"  style="padding-top:30px; padding-left:243px">公司名称：
    <input name="com_name" type="text" maxlength="18" />
  </div>
  <div align="left"  style="padding-top:30px; padding-left:212px"> 密码查询问题：
    <select name="question" >
      <option value="我的大学学号">我的大学学号？</option>
      <option value="我的公司名称">我的公司名称？</option>
      <option value="我的生日">我的生日？</option>
      <option value="我初中的班主任">我初中的班主任？</option>
      <option value="我姐姐的名字">我姐姐的名字？</option>
    </select>
  </div>
  <div align="left"  style="padding-top:30px; padding-left:212px">找回密码答案：
    <input name="answer" type="text" maxlength="18" />
  </div>
  <div align="left"  style="padding-top:40px; padding-left:203px">联系电话(手机)：
    <input name="phonenum" type="text" maxlength="18" />
  </div>
  <div style="margin-top:20px"><img src="logo3.JPG" width="916" height="30" />
    <div style=" font-family:Arial, Helvetica, sans-serif; font-size:16px; color:#1488CD"><b>注册验证</b>
      <div> <img src="underline.JPG" width="919" height="19" /></div>
    </div>
    <div align="left"  style="padding-top:30px; padding-left:212px">请输入验证码：
      <input name="checknum" type="text" maxlength="18" />
    </div>
  </div>
  <div style="margin-top:20px"><img src="logo3.JPG" width="916" height="30" />
    <div style=" font-family:Arial, Helvetica, sans-serif; font-size:16px; color:#1488CD"><b>服务条款</b>
      <div> <img src="underline.JPG" width="919" height="19" /></div>
    </div>
    <div align="center" style="margin-top:10px">
      <input name="check" type="radio" value="" checked />
      我已阅读并接受<a href="www.baidu.com">"服务条款"</a>和<a href="www.baidu.com">"隐私权保护和个人信息利用政策"</a></div>
    <div style="margin-bottom:50px; margin-top:20px" align="center">
      <input name="action" type="submit" value="注册" />
      <input name="action" type="reset" value="重置" />
    </div>
  </div>
</form>
</body>
</html>
